<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <body>
    <script src="../node_modules/@vue/reactivity/dist/reactivity.global.js"></script>
    <div id="app"></div>
    <div id="app1"></div>
    <script>
      let { ref, effect } = VueReactivity;
      let state = ref("hulei");
      let state1 = ref({ name: "hulei" });
      effect(() => {
        app.innerHTML = state.value;
        app1.innerHTML = state1.value.name;
      });
      setTimeout(() => {
        state.value = "hu.lei";
        state1.value.name = "hu.lei";
      }, 3000);
    </script>
  </body>
</html>
